<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Modules\Inventory\Repository\InventoryRepository;

class InsertFakeData extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'InsertFakeData';//自定义任务名称，手动执行用到

    /**
     * The console command description.
     * @var string
     */
    protected $description = '月结库存表数据';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command
     * @return int
     */
    public function handle()
    {
        return InventoryRepository::storeByStatement();
    }
    

}

